#include "mainwindow.h"
#include "pukerclass.h"
#include "ui_mainwindow.h"
#include<QDebug>
#include<stdlib.h>
#include<time.h>
#include<QPainter>
#include<QMessageBox>
MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);
initui();
}

MainWindow::~MainWindow()
{
    delete ui;
}
void MainWindow::initui(){
    this->resize(1600,1200);
    this->setMaximumSize(1600,1200);
    this->setMinimumSize(1600,1200);
    this->setWindowTitle("德州puker玩法模拟");

}
void MainWindow::paintEvent(QPaintEvent *event){
   draw2();
   update();
   }
}
void MainWindow::draw2(){
   QPainter painter(this);
   painter.drawPixmap(0,0,1600,1200,QPixmap(":/drawer/微信图片_20220506221842.jpg"));
}
